<?php
include("global.php");

$util =new Util();
$util->Init();


$action = $util->getvalue("hdAction");

if($action=="Add")
{
	
	$query ="INSERT INTO tblmembers(LookUpId, Name, EmailId, Designation, Address, City, Phone, ImagePath, ElectionId) 
	VALUES (".$util->getvalue("ddlCommiteeType").",'".$util->getvalue("txtName")."','".$util->getvalue("txtEmail")."','".$util->getvalue("txtDesignation")."','".$util->getvalue("txtAddress")."','".$util->getvalue("txtCity")."','".$util->getvalue("txtPhone")."','".$util->getvalue("txtDuration")."',".$util->getvalue("ddlFormerType").")";
	$re =$util->Query($query);
}
elseif (	$action=="remove")
{
	$query ="DELETE FROM `tblmembers` WHERE Id=".$util->getvalue("ddlFormerType");
	$re =$util->Query($query);
}
elseif (	$action=="Select")
{
}
echo $re;
?>